package com.oracle.manager.service.feign;

import com.oracle.beans.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author 惜风
 */
@FeignClient("health-service")
public interface CheckItemFeignClient {
    @GetMapping("checkItem/findList?currentPage={currentPage}&pageSize={pageSize}&queryString={queryString}")
    public PageBean<CheckItem> findList(@PathVariable("currentPage") Integer currentPage,
                                        @PathVariable("pageSize") Integer pageSize,@PathVariable("queryString") String queryString);

    @PostMapping("checkItem/add")
    public ResultInfo add(CheckItem checkItem);

    @PutMapping("checkItem/update")
    public ResultInfo update(CheckItem checkItem);

    @DeleteMapping("checkItem/delete/{id}")
    public ResultInfo delete(@PathVariable("id") Integer id);

    @GetMapping("checkItem/findAll")
    ResultInfo findAll();
}
